﻿using UnityEngine;
using System.Collections;

namespace SGUI
{
    public class RootView : UIElement
    {
        public float ViewSize; 
        public override void Init()
        {
            base.Init();
            this.SetProperty("Height",(double)ViewSize);
            float width = (ViewSize/(float)Screen.height)*(float)Screen.width;
            this.SetProperty("Width", (double)width);
        }
    }
}